package valuecomusa.fijibus.eticket;

public class Customer { 
	  
    //private variables 
    int _id; 
    String _user_name;
    String _first_name=""; 
    String _last_name="";
    String _phone_number;
    String _photo;
    double _balance=0;
    
    // Empty constructor 
    public Customer(){ 
  
    }
    
    // constructor 
    public Customer(int id, String username, String firstname, String lastname, String phonenumber, String photo, float balance){ 
        this._id = id; 
        this._user_name = username;
        this._first_name = firstname;
        this._last_name = lastname;
        this._photo = photo;
        this._phone_number = phonenumber; 
        this._balance = balance;
    } 
  
    // getting ID 
    public int getID(){ 
        return this._id; 
    } 
  
    // setting id 
    public void setID(int id){ 
        this._id = id; 
    } 
  
    public String getUserName(){ 
        return this._user_name; 
    } 

    public void setUsername(String val){ 
        this._user_name = val; 
    } 
    
    public String getFirstName(){ 
        return this._first_name; 
    } 

    public void setFirstName(String val){ 
        this._first_name = val; 
    } 
  
    public String getLastName(){ 
        return this._last_name; 
    } 

    public void setLastName(String val){ 
        this._last_name = val; 
    } 
    
    public String getPhoneNumber(){ 
        return this._phone_number; 
    } 
  
    public void setPhoneNumber(String val){ 
        this._phone_number = val; 
    }
    
    public String getPhoto(){ 
        return this._photo; 
    } 
  
    public void setPhoto(String val){ 
        this._photo = val; 
    }
    
    public double getBalance(){ 
        return this._balance; 
    } 
  
    public void setBalance(double val){ 
        this._balance = val; 
    }
    
    public String getFullName() {
    	return this._first_name + " " + this._last_name;
    }
    
    public double IncDecBalance(double dAmount) {
    	this._balance += dAmount;
    	return this._balance;
    }
    
}